<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>系统行为</title>
    <link rel="stylesheet" href="<?=adminassets?>assets/pear/component/pear/css/pear.css" />
    <style>
        button.upload-image {
            margin: 4px 5px;
            vertical-align: top
        }

        div.upload-image {
            display: inline-block;
            position: relative;
            overflow: hidden
        }

        div.upload-image span {
            background-image: url('/static/admin/images/x.png');
            position: absolute;
            right: 0;
            height: 16px;
            width: 16px;
            cursor: pointer
        }

        img.upload-image {
            max-width: 380px;
            max-height: 50px
        }

        img.show-image {
            max-height: 25px
        }

        img.show-big-image {
            width: 100%;
            height: 100%
        }

        img.photo {
            max-width: 100%;
            height: 100%;
            cursor: pointer;
        }
    </style>
</head>


<body class="pear-container">
    <div class="layui-card layui-form" lay-filter="component-form-element" style="margin-top: 10px;">
       <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <li class="layui-this">网站基础配置</li>
                <li>免挂会员价格配置</li>
            </ul>
            <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                    <form action="">
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="sitename" value="<?php echo $conf['sitename']; ?>" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">首页标题</label>
                                <div class="layui-input-block">
                                    <input type="text" name="title" value="<?php echo $conf['title']; ?>" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站关键词</label>
                                <div class="layui-input-block">
                                    <textarea name="keywords" placeholder="请输入" class="layui-textarea"><?php echo $conf['keywords']; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站简介</label>
                                <div class="layui-input-block">
                                    <textarea name="description" placeholder="请输入" class="layui-textarea"><?php echo $conf['description']; ?></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md12">
                            <div class="layui-form-item">
                                <label class="layui-form-label">网站Logo</label>
                                <div class="layui-input-block">
                                    <button type="button" class="pear-btn pear-btn-primary pear-btn-sm  upload-image" id="ongImg"><i class="fa fa-image"></i>上传图片</button>
                                    <img class="upload-image" id="logos" src="<?php echo '../Core/assets/img/logo.png?r=' . rand(10000, 99999) ?>">
                                </div>
                            </div>
                        </div>
        
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">客服ＱＱ</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qq" value="<?php echo $conf['qq']; ?>" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">QQ群号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qun" value="<?php echo $conf['qun']; ?>" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">加群链接</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qq_qun" value="<?php echo $conf['qq_qun']; ?>" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">ICP备案号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="icpgov" value="<?php echo $conf['icpgov']; ?>" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">企业微信客服链接</label>
                                <div class="layui-input-block">
                                    <input type="text" name="kefulj" value="<?php echo $conf['kefulj']; ?>" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">测试支付/收款商户ID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="zero_pid" value="<?php echo $conf['zero_pid']; ?>" class="layui-input">
                                     <b>这个商户ID 是测试商户ID 也是注册收费id</b>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">极验ID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="captcha_id" value="<?php echo $conf['captcha_id']; ?>" class="layui-input">
                                     <b>免费ID：b31335edde91b2f98dacd393f6ae6de8</b>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">极验秘钥</label>
                                <div class="layui-input-block">
                                    <input type="text" name="captcha_key" value="<?php echo $conf['captcha_key']; ?>" class="layui-input">
                                     <b>免费秘钥：170d2349acef92b7396c7157eb9d8f47</b>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">用户中心公告HTML开关</label>
                                <div class="layui-input-block">
                                    <select name="gghtml_code" default="">
                                        <option value="1" <?= $conf['gghtml_code'] == 1 ? "selected" : "" ?>>支持HTML</option>
                                        <option value="0" <?= $conf['gghtml_code'] == 0 ? "selected" : "" ?>>不支持HTML</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">找回密码功能</label>
                                <div class="layui-input-block">
                                    <select name="zh_open" default="">
                                        <option value="1" <?= $conf['zh_open'] == 1 ? "selected" : "" ?>>开启</option>
                                        <option value="0" <?= $conf['zh_open'] == 0 ? "selected" : "" ?>>关闭</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">验证方式</label>
                                <div class="layui-input-block">
                                    <select name="verifytype" default="<?php echo $conf['verifytype'] ?>">
                                        <option value="email" <?= $conf['verifytype'] == 'email' ? "selected" : "" ?>>邮箱验证</option>
                                        <option value="phone" <?= $conf['verifytype'] == 'phone' ? "selected" : "" ?>>短信验证</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                         <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">全站维护</label>
                                <div class="layui-input-block">
                                    <select name="webwh" default="<?php echo $conf['webwh'] ?>">
                                        <option value="1" <?= $conf['webwh'] == 1 ? "selected" : "" ?>>开启</option>
                                        <option value="0" <?= $conf['webwh'] == 0 ? "selected" : "" ?>>关闭</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">支付宝qq辅助监控</label>
                                <div class="layui-input-block">
                                    <select name="aliqqpay_cron">
                                        <option value="1" <?= $conf['aliqqpay_cron'] == 1 ? "selected" : "" ?>>开启</option>
                                        <option value="0" <?= $conf['aliqqpay_cron'] == 0 ? "selected" : "" ?>>关闭</option>
                                    </select>
                                    <b>关闭后系统将不会辅助监控和回调 全需要依赖 PC监控</b>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">测试支付</label>
                                <div class="layui-input-block">
                                    <select name="test_open">
                                        <option value="1" <?= $conf['test_open'] == 1 ? "selected" : "" ?>>开启</option>
                                        <option value="0" <?= $conf['test_open'] == 0 ? "selected" : "" ?>>关闭</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                         <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">开放注册</label>
                                <div class="layui-input-block">
                                    <select name="reg_open" default="<?php echo $conf['reg_open'] ?>">
                                        <option value="1" <?= $conf['reg_open'] == 1 ? "selected" : "" ?>>开启</option>
                                        <option value="0" <?= $conf['reg_open'] == 0 ? "selected" : "" ?>>关闭</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6" style="<?php echo $conf['reg_open']!=1?'display:none;':null; ?>">
                        <div class="layui-form-item">
                            <label class="layui-form-label">注册赠送额度</label>
                            <div class="layui-input-block">
                                <input type="text" name="reg_money" value="<?php echo $conf['reg_money']; ?>" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md6" style="<?php echo $conf['reg_open']!=1?'display:none;':null; ?>">
                        <div class="layui-form-item">
                            <label class="layui-form-label">注册赠送会员/天</label>
                            <div class="layui-input-block">
                                <input type="text" name="user_vip" value="<?php echo $conf['user_vip']; ?>" class="layui-input">
                            </div>
                        </div>
                    </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">注册付费</label>
                                <div class="layui-input-block">
                                    <select name="reg_pay" default="<?php echo $conf['reg_pay'] ?>">
                                        <option value="1" <?= $conf['reg_pay'] == 1 ? "selected" : "" ?>>开启</option>
                                        <option value="0" <?= $conf['reg_pay'] == 0 ? "selected" : "" ?>>关闭</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6" style="<?php echo $conf['reg_pay']!=1?'display:none;':null; ?>">
                            <div class="layui-form-item">
                                <label class="layui-form-label">注册付费金额</label>
                                <div class="layui-input-block">
                                    <input type="text" name="reg_pay_price" value="<?php echo $conf['reg_pay_price']; ?>" class="layui-input" placeholder="将以frame方式显示">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">首页显示模式</label>
                                <div class="layui-input-block">
                                    <select name="homepage">
                                        <option value="0" <?= $conf['homepage'] == 0 ? "selected" : "" ?>>默认显示首页</option>
                                         <option value="1" <?= $conf['homepage'] == 1 ? "selected" : "" ?>>直接跳转登录页面</option>
                                         <option value="2" <?= $conf['homepage'] == 2 ? "selected" : "" ?>>显示其它指定网址</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6" style="<?php echo $conf['homepage']!=2?'display:none;':null; ?>">
                            <div class="layui-form-item">
                                <label class="layui-form-label">显示网址URL</label>
                                <div class="layui-input-block">
                                    <input type="text" name="homepage_url" value="<?php echo $conf['homepage_url']; ?>" class="layui-input" placeholder="将以frame方式显示">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button type="submit" lay-submit="" lay-filter="addSave" class="pear-btn pear-btn-primary">更新数据</button>
                            </div>
                        </div>
                    </form>
                </div>
                <!---->
                <div class="layui-tab-item">
                    <form onsubmit="return saveSetting(this)" method="post" role="form">
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付宝免挂一个月价格</label>
                        <div class="layui-input-block">
                            <input type="text" name="alipay_free_vip_money" value="<?php echo $conf['alipay_free_vip_money']; ?>" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">QQ钱包免挂一个月价格</label>
                        <div class="layui-input-block">
                            <input type="text" name="qqpay_free_vip_money" value="<?php echo $conf['qqpay_free_vip_money']; ?>" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">微信免挂一个月价格</label>
                        <div class="layui-input-block">
                            <input type="text" name="wxpay_free_vip_money" value="<?php echo $conf['wxpay_free_vip_money']; ?>" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">允许商户上架二维码数量</label>
                        <div class="layui-input-block">
                            <input type="text" name="qr_nums" value="<?php echo $conf['qr_nums']; ?>" class="layui-input">
                            <font color="green">不设置则走 用户那边的专门的 二维码数量</font>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">额度充值比例1元=?额度</label>
                        <div class="layui-input-block">
                            <input type="text" name="ed_money" value="<?php echo $conf['ed_money']; ?>" class="layui-input">
                            <font color="green">1元=30  10=300  那么费率就差不多是百分之3 别人跑1000量,你赚30</font>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">会员开通收款商户ID</label>
                        <div class="layui-input-block">
                            <input type="text" name="zero_pid" value="<?php echo $conf['zero_pid']; ?>" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" lay-submit="" lay-filter="addSave" class="pear-btn pear-btn-primary">更新数据</button>
                    </div>
                </div>
            </form>
                </div>
                <!---->
            </div>
        </div>
    </div>
</body>
<script src="<?=adminassets?>assets/pear/component/layui/layui.js"></script>
<script src="<?=adminassets?>assets/pear/component/pear/pear.js"></script>
<script src="<?=adminassets?>assets/js/core_js/set.js"></script>
<script type="text/javascript" src="../Core/assets/js/jquery.min.js"></script>
</html>